package com.zzx.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zzx.entity.BaseEntity;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 产品属性表
 *
 * @author zzx
 * @since 2025-06-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_product_attribute")
public class TProductAttribute extends BaseEntity implements Serializable {


    /**
     * 主键ID
     */
    @TableId
    @ApiModelProperty("主键ID")
    private Long productAttributeId;

    @ApiModelProperty("产品ID")
    @TableField("product_id")
    private Long productId;

    /**
     * 属性名称
     */
    @TableField("attribute_name")
    @ApiModelProperty("属性名称")
    private String attributeName;

    /**
     * 属性值
     */
    @TableField("attribute_value")
    @ApiModelProperty("属性值")
    private String attributeValue;

    /**
     * 排序字段
     */
    @TableField("sort_order")
    @ApiModelProperty("排序字段")
    private Integer sortOrder;

}
